package com.zsz;

import com.zsz.ba08.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest08 {
    @Test
    public void test01(){
        String config="applicationContext.xml";
        ApplicationContext ac= new ClassPathXmlApplicationContext(config);
        //从容器中获取目标对象
        SomeService someService = (SomeService) ac.getBean("someService");

        System.out.println("someService:"+someService.getClass().getName());


         someService.doThird();
//        System.out.println("===str==="+str);



    }

}
